export interface Avatar {
  url: string,
  _id?: string,
  filename?: string
}
export interface ColumnProps {
  _id: string;
  title: string;
  avatar?: Avatar;
  description: string;
}
export const testData: ColumnProps[] = [
  // {
  //   id: 1,
  //   title: 'test1的专栏',
  //   description: '这是的test1专栏，有一段非常有意思的简介，可以更新一下欧',
  //   // avatar: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
  // },
  // {
  //   id: 2,
  //   title: 'test2的专栏',
  //   description: '这是的test2专栏，有一段非常有意思的简介，可以更新一下欧',
  //   avatar: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
  // },
  // {
  //   id: 3,
  //   title: 'test1的专栏',
  //   description: '这是的test1专栏，有一段非常有意思的简介，可以更新一下欧',
  //   avatar: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
  // }
]

export interface UserProps {
  isLogin: boolean;
  name?: string;
  id?: number;
  columnId?: string;
}

export interface PostProps {
  _id: string | number,
  title: string,
  content?: string,
  avatar?: Avatar,
  createdAt: string,
  columnId: string,
  author?: string,
  featured?: string,
  description?: string
}

export const testPosts: PostProps[] = [
  {
    _id: 1,
    title: '第一篇文章',
    content: 'this is my first article. Welcome to give me some suggestions',
    // image: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100',
    createdAt: '2020-06-11 10:34:22',
    columnId: '1',
    avatar: {
      url: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
    }
  },

  {
    _id: 2,
    title: '第二篇文章',
    content: 'this is my second article. Welcome to give me some suggestions',
    // image: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100',
    createdAt: '2020-06-11 10:34:22',
    columnId: '2',
    avatar: {
      url: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
    }
  },

  {
    _id: 3,
    title: '第三篇文章',
    content: 'this is my third article. Welcome to give me some suggestions',
    // image: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100',
    createdAt: '2020-06-11 10:34:22',
    columnId: '3',
    avatar: {
      url: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
    }
  },

  {
    _id: 4,
    title: '第四篇文章',
    content: 'this is my fourth article. Welcome to give me some suggestions',
    // image: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100',
    createdAt: '2020-06-11 10:34:22',
    columnId: '1',
    avatar: {
      url: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
    }
  },

  {
    _id: 5,
    title: '第五篇文章',
    content: 'this is my fifth article. Welcome to give me some suggestions',
    createdAt: '2020-06-11 10:34:22',
    columnId: '1',
    avatar: {
      url: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
    }
  }
]
